<!--polymer 库，不可删，路径使用模板给的polymer即可-->
<link rel="import" href="../../framework/polymer/polymer.html">
<link rel="import" href="../../framework/public/tagHtml/amp-w-frame.html">
<!--id按格式（“widget-”+appId+”-”+自定义序号）修改-->
<dom-module id="PC-CARD-HTML-4764356755066632-01">
    <!-- 引用的css文件必须放在dom-module标签内-->
    <!--示例 widget需要引用的自定义css文件， rel="import" type="css"-->
    <link href="resources/css/toDoTasks.css" rel="import" type="css">
    <link href="../../framework/public/css/widgetPublicCss.css" rel="import" type="css">
    <!--该template标签不可删，但里面的标签和内容根据自身项目自行修改-->
    <template>
        <amp-w-frame widget_title="{{widget_title}}" has-scroll="true">
            <section class="widget-box">
                <template is="dom-repeat" items="[[boundKeys]]">
                    <div class="process-item amp-card-service-item amp-bg-color-primary-hover-lv4" on-click="openProcess" url$="{{item.formUrl}}" appId$="{{item.appId}}" taskId$="{{item.taskId}}">
                        <template is="dom-if" if="{{item.isSingleData}}">
                            <div class="image"><img src="resources/img/user-role-teacher.png" /></div>
                        </template>
                        <div class="content">
                            <div class="processName" title="{{item.taskTitle}}">{{item.taskTitle}}<template is="dom-if" if="{{item.isDisplayData}}">
                                    <span class="dataNumber">
                                <span>(</span><span>{{item.dataNum}}</span><span> </span><span>{{item.itemsStr}}</span><span>)</span>
                                    </span>
                                </template>
                            </div>
                            <div class="task-type task-type-db">{{item.toDo}}</div>
                            <span class="create-time">{{item.createTime}}</span>
                            <div class="view-comment">
                                <a href="javascript: void(0);" appId$="{{item.appId}}" processIntanceId$="{{item.processInstanceId}}"><span>{{item.approvalAdvice}}</span><span> ></span></a>
                            </div>
                            <div class="check-flow">
                                <a href="javascript: void(0);" appId$="{{item.appId}}" processIntanceId$="{{item.processInstanceId}}"><span>{{item.flowChart}}</span><span> ></span></a>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </template>
                <template is="dom-if" if="{{noneData}}">
                    <div class="no-data">  
                    <img class="no-data-img" src="resources/img/no-data.png"/>
                      <span class="no-data-span">{{noDataTitle}}</span>
                      </div>
                </template>
                <template is="dom-if" if="{{moreData}}">
                    <div class="right-side-item amp-card-service-item">
                        <div class="right-side-do-more" on-click="openApp">{{seeMore}}<span>{{total}}</span>{{widgetItemStr}}<span> ></span></div>
                    </div>
                </template>
            </section>
        </amp-w-frame>
        <amp-w-setting>
        </amp-w-setting>
    </template>
</dom-module>
<!--widget展现和初始化js-->
<script src="resources/js/card.js"></script>
